﻿using Abp.Domain.Entities.Auditing;
using Camc.Quality.Bom;
using Camc.Quality.BomChange;
using Camc.Quality.Business;
using Camc.Quality.Chat;
using JetBrains.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.WorkFlow
{
    /// <summary>
    /// 主业务表
    /// </summary>
    public class BusinessApplication : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 业务编号
        /// </summary>
        public string BusinessNumber { get; set; }

        /// <summary>
        /// 业务描述
        /// </summary>
        public string BusinessDesc { get; set; }


        /// <summary>
        /// 发起时间
        /// </summary>
        public  DateTime? ApplicationDate { get; set; }

        /// <summary>
        /// 申请人用户ID
        /// </summary>
        public long UserID { get; set; }
        /// <summary>
        /// 申请人用户姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 业务类别 
        /// </summary>
        public int BAppType { get; set; }
        /// <summary>
        /// 申请范围（系统内，系统外）
        /// </summary>
        [CanBeNull]
        public int IsLocal { get; set; }
        /// <summary>
        /// 发起站点编号
        /// </summary>
        [CanBeNull]
        public int SendLocalityID { get; set; }
        /// <summary>
        /// 接收站点编号
        /// </summary>
        [CanBeNull]
        public int ReceiveLocalityID { get; set; }
        /// <summary>
        /// 发送单位
        /// </summary>
        public string SendDeptID { get; set; }
        /// <summary>
        /// 发送单位名称
        /// </summary>
        public string SendDeptName { get; set; }
        /// <summary>
        /// 接收单位
        /// </summary>
        public string ReceiveDeptID { get; set; }
        /// <summary>
        /// 接收单位名称
        /// </summary>
        public string ReceiveDeptName { get; set; }
        /// <summary>
        /// 备注内容
        /// </summary>
        public string AppContent { get; set; }
        /// <summary>
        /// 业务状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 退回原因
        /// </summary>
        public string Opinion { get; set; }
        [CanBeNull]
        /// <summary>
        /// 下一节点的角色编号或用户ID
        /// </summary>
        public long? ExamineUserId { get; set; }
        [CanBeNull]
        /// <summary>
        /// 下一节点的角色编号或用户ID
        /// </summary>
        public int RoleId { get; set; }
       
        /// <summary>
        /// 待审批单位
        /// </summary>
        public string PendingDeptID { get; set; }
        /// <summary>
        /// 抄送
        /// </summary>
        public string CopyDuplicate { get; set; }
        ///// <summary>
        ///// 变更管理业务
        ///// </summary>
        //public ModifyManage ModifyManages { get; set; }
        ///// <summary>
        ///// 设计bom送审
        ///// </summary>
        //public BomDesignDetail   bomDesignDetail { get; set; }
        ///// <summary>
        ///// 变更bom送审
        ///// </summary>
        //public BomChangeContent  bomChangeContent { get; set; }
        /// <summary>
        /// 功能模块
        /// </summary>
        public string FunModule { get; set; }
        /// <summary>
        /// 菜单
        /// </summary>
        public string Menu { get; set; }

        /// <summary>
        /// 审批状态描述 
        /// </summary>
        public ApprovalState ApprovalDesc { get; set; }




    }
}
